import request from '@/utils/request'
import variable from '@/utils/variables'
const baseURL = variable.URL.baseURL

// 云工厂搜索列表
export function factorySearch(params) {
  return request({
    baseURL: baseURL,
    url: '/search/factory/search/merge',
    method: 'GET',
    params: params
  })
}

//商品搜索
export function productSearch(params) {
  return request({
    baseURL: baseURL,
    url: '/search/product/search/merge',
    method: 'GET',
    params: params
  })
}

//查询类目  /category/operate/list
export function categoryList(params) {
  return request({
    baseURL: baseURL,
    url: '/category/pc/list',
    method: 'GET',
    params: params
  })
}

//获取建议类目
export function suggestCategory(params) {
  return request({
    baseURL: baseURL,
    url: '/search/product/suggest/category',
    method: 'GET',
    params: params
  })
}

//查询推荐属性
export function attributeList(params) {
  return request({
    baseURL: baseURL,
    url: '/search/attribute/category',
    method: 'GET',
    params: params
  })
}
